<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
   <script>
      function person(){
	  }

	  var p1 = new person();
	  p1.name = "zIt";
	  p1.age = 1;
	  window.alert(p1.name+"的年龄是："+p1.age);

	  function person(){
	    this.name = "zIt";
		this.age = 1;
	  }
	  var p1 = new person();
	  var p2 = new person();
	  window.alert(p1.name);
	  window.alert(p2.name);

	  p2.name = "zhuer";
	  window.alert(p1.name);
	  window.alert(p2.name);
   </script>
</html>
